import request from '@/utils/request'
// 新增管理评审改进、纠正和预防措施实施情况一览
export function listmanagerOptimize(query) {
  return request({
    url: '/system/managerOptimize/list',
    method: 'get',
    params: query
  })
}

export function selectList(query) {
  return request({
    url: '/system/managerOptimize/listSelect',

    method: 'get',
    params: query
  })
}
export function delmanagerOptimize(compFeeIds) {
  return request({
    url: '/system/managerOptimize/' + compFeeIds,
    method: 'delete'
  })
}
export function managerOptimizeAdd(data) {
  return request({
    url: '/system/managerOptimize',
    method: 'post',
    data: data
  })
}
export function updategmanagerOptimize(data) {
  return request({
    url: '/system/managerOptimize',
    method: 'put',
    data: data
  })
}
export function managerOptimizeInfo(query) {
  return request({
    url: '/system/managerOptimize/' + query,
    method: 'get',
  })
}
// 启用禁用供应商
export function effectmanagerOptimize(id, effect) {
  console.log('11')
  return request({
    url: '/system/managerOptimize/effect/' + id + '/' + effect,
    method: 'put',
  })
}

// 上传签到表 type 1首次 2末次 3总结报告
export function signFile(query) {
  return request({
    url: '/system/managerOptimize/signFile',
    method: 'get',
    params: query
  })
}

